<style>
    .basicinfo {
        margin: 15px 0;
    }

    .basicinfo .row > .col-xs-4 {
        padding-right: 0;
    }

    .basicinfo .row > div {
        margin: 5px 0;
    }
</style>
<div class="row">
    <div class="main ">
        <div class="col-lg-4">
            <div class="panel panel-gray panel-intro">
                <div class="panel-body">
                    <h6 class="page-header">
                        账户中心
                        <a href="{:url('index/wanlshop.account/profile')}" class="btn btn-success pull-right"><i class="fa fa-pencil"></i>
                            {:__('Profile')}</a>
                    </h6>
                    <div class="row">
                        <div class="col-md-12 col-sm-12 col-xs-12 ">
                            <span class="text-info" style="font-size: 35px">A$ {$user.money}</span>

                            <div>
                                <button class="btn btn-info btn-xs btn-withdraw"><i class="fa fa-dollar fa-fw"></i>提现</button>
                                <button class="btn btn-warning btn-xs btn-withdraw-log"><i class="fa fa-list fa-fw"></i>提现记录</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class=" col-lg-4">
            <div class="panel panel-gray panel-intro">
                <div class="panel-body">
                    <h6 class="page-header">
                        财务提醒
                    </h6>
                    <div class="row">
                        <div class="col-md-12 col-sm-12 col-xs-12 ">
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                已提现金额：<span class="text-info">AU$ {$withdrawSum}</span>
                            </div>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                销售返利金额：<span class="text-info">AU$ {$settlementSum}</span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="row" style="margin-top: 20px">
    <div  class="main">
        <div class="col-lg-8">
            <div class="panel panel-gray panel-intro">
                <div class="panel-body">
                    <h6 class="page-header">
                        收支统计
                    </h6>
                    <div class="row">
                        <div class="col-lg-12">
                            <div id="datefilter">
                                <form action="" role="form" novalidate class="form-inline">
                                    <a href="javascript:;" class="btn btn-primary btn-refresh"><i class="fa fa-refresh"></i></a>
                                    <a href="javascript:;" class="btn btn-success btn-filter">{:__('Today')}</a>
                                    <a href="javascript:;" class="btn btn-success btn-filter">{:__('Yesterday')}</a>
                                    <a href="javascript:;" class="btn btn-success btn-filter">{:__('Last 7 Days')}</a>
                                    <a href="javascript:;" class="btn btn-success btn-filter">{:__('Last 30 Days')}</a>
                                    <a href="javascript:;" class="btn btn-success btn-filter">{:__('Last month')}</a>
                                    <a href="javascript:;" class="btn btn-success btn-filter">{:__('This month')}</a>
                                    <div class="input-group">
                                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                                        <input type="text" class="form-control input-inline datetimerange" placeholder="{:__('Specify the date')}" style="width:270px;" value="{$date}"/>
                                    </div>
                                </form>
                            </div>
                        </div>
                        <div class="col-lg-12" style="margin-top: 20px">
                        <div id="echart" class="btn-refresh" style="height:300px;width:100%;"></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<script type="text/html" id="withdraw-tpl">

        <form id="withdraw-form" class="form-horizontal form-layer" method="POST" action="{:url('api/wanlshop.pay/withdraw')}">
            <div class="form-body">
                <div class="form-group">
                    <label for="c-money" class="control-label col-xs-12 col-sm-3">提现账户:</label>
                    <div class="col-xs-12 col-sm-8">
                        <select name="account_id" class="form-control" id="">
                            {volist name='banklist' id="bank"}
                            <option value="{$bank.id}">{$bank.bankName}-{$bank.cardCode}</option>
                            {/volist}
                        </select>
                        <span class="msg-box"></span>
                    </div>
                </div>
                <div class="form-group">
                    <label for="c-money" class="control-label col-xs-12 col-sm-3">提现金额:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input type="hidden" name="shop_id" value="{$shop.id}">
                        <input type="text" class="form-control" id="money" name="money" value="" data-rule="required;" placeholder="请输入提现金额 ">
                        <span class="msg-box"></span>
                    </div>
                </div>
                <div class="form-group">
                    <label for="safepassword" class="control-label col-xs-12 col-sm-3">安全密码:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input type="hidden" name="shop_id" value="{$shop.id}">
                        <input type="password" class="form-control" id="safepassword" name="safepassword" value="" data-rule="required;" placeholder="请输入安全密码 ">
                        <span class="msg-box"></span>
                    </div>
                </div>

            </div>
            <div class="form-footer">
                <div class="form-group" style="margin-bottom:0;">
                    <label class="control-label col-xs-12 col-sm-3"></label>
                    <div class="col-xs-12 col-sm-8">
                        <button type="submit" class="btn btn-md btn-info">{:__('Submit')}</button>
                    </div>
                </div>
            </div>
        </form>

</script>
